home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
qb2
/
pro16
/
bitlist.bi
< prev
next >
Wrap
Text File
|
1991-03-26
|
827b
|
20 lines
'****************************************************
'* BITLIST.BI - structure definitions, constants, *
'* and function defintions for the *
'* bit list handler functions *
'****************************************************
CONST blCLEAR = 1 ' Clear all bits
CONST blSET = 2 ' Set all bits
CONST blINVERT = 3 ' Invert all bits
CONST blUNION = 4 ' Merge two lists
CONST blINTERSECT = 5 ' Keep intersecting bits
CONST blCOPY = 6 ' Copy bitlist
CONST NULL = 0 ' status value for some errors
DECLARE FUNCTION blCreate (Size%)
DECLARE SUB blDestroy (BitList%)
DECLARE FUNCTION blGetBit (bl%, BitNum%)
DECLARE FUNCTION blSetBit (bl%, BitNum%, State%)
DECLARE FUNCTION blListOp (Op%, bl1%, bl2%)